﻿using System;
using System.Collections.Generic;
using System.Text;

namespace com.crawler.common
{
    public class Consts
    {
        /// <summary>
        /// 数据库类型
        /// </summary>
        public enum DBType
        {
            MySQL,
            ServerSQL
        }

        public const string SysConfigFileName = "sys.xml";

        public const string SiteFileName = "site.xml";

        /// <summary>
        /// 存在章节内容的站点ID
        /// </summary>
        public const int ExistChapterSiteId = 100;

        /// <summary>
        /// 可以收录小说章节内容的站点ID列表
        /// </summary>
        public const string ExistChapterSiteIdList = "20";

        /// <summary>
        /// 小说状态存在章节内容
        /// </summary>
        public static int ExistChapterContentBook = 1;
        /// <summary>
        /// 小说章节类别
        /// </summary>
        public enum BookPageType
        {
            /// <summary>
            /// 小说列表页
            /// </summary>
            BookList,
            /// <summary>
            /// 小说详情页
            /// </summary>
            BookContent,
            /// <summary>
            /// 章节列表页
            /// </summary>
            ChapterList,
            /// <summary>
            /// 章节内容页
            /// </summary>
            ChapterContent
        }

        public enum BookSource
        {
            BaiDu=1,
            Hao123=2
        }

        public const int qidian = 21;
        public const int qdmm = 22;


        public enum CrawlerType
        {
            /// <summary>
            /// 同时收录
            /// </summary>
            ALL,
            /// <summary>
            /// 更新小说
            /// </summary>
            UpdateBook,
            /// <summary>
            /// 收录新书
            /// </summary>
            NewBook,
            /// <summary>
            /// 重点小说
            /// </summary>
            ImportantBook
        }
    }
}
